"""Pydantic schemas for AI response operations."""

from __future__ import annotations

from datetime import datetime
from typing import List, Optional, Dict, Any

from pydantic import BaseModel


# legacy chat/interpret schemas removed


class ImageGenerateResponse(BaseModel):
    """Schema for image generation responses."""

    image_url: str
    prompt: str
    style: str
    generation_time: Optional[float] = None
    user_subdir: Optional[str] = None


# legacy quiz schemas removed


# legacy chat history output removed


class ImageHistoryOut(BaseModel):
    """Schema for image generation history output."""

    id: int
    prompt: str
    style: Optional[str]
    image_url: str
    is_favorite: bool
    created_at: datetime
    user_subdir: Optional[str] = None

    class Config:
        from_attributes = True
